import Vue from "vue";
import Vuex from "vuex";

Vue.use(Vuex);
import vuexPersist from "vuex-persist";
export default new Vuex.Store({
  state: {
    list: [
      { title: "六🐛🐑1" },
      { title: "六🐛🐑2" },
      { title: "六🐛🐑3" },
      { title: "六🐛🐑4" },
      { title: "六🐛🐑5" },
    ],
  },
  mutations: {
    add(state, title) {
      state.list.push({ title: title });
    },
  },
  actions: {},
  modules: {},
  plugins: [
    new vuexPersist({
      localstorage: window.localStorage,
    }).plugin,
  ],
});
